package pers.fulsun.demo.springcloud.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import pers.fulsun.demo.springcloud.entity.User;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author fulsun
 * @since 2021-08-18
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    /**
     * 自定义分页方法（注：Page参数一定要放在第一位，否则会失效）
     * @param page 分页对象
     * @param user 传入对象参数
     * @return
     */
    IPage<User> selectUserPage(Page page, @Param("user") User user);
}
